
set(DEMO_SOURCES
  http_response.cc
  http_server.cc
  query_server.cc
  mercator.cc)

if(COMMAND cmake_policy)
 cmake_policy(SET CMP0003 NEW)
 endif(COMMAND cmake_policy)

 FILE(MAKE_DIRECTORY ${EXECUTABLE_OUTPUT_PATH}/demo)
 set(EXECUTABLE_OUTPUT_PATH ${PROJECT_BINARY_DIR}/bin/demo)

 add_executable(query_server ${DEMO_SOURCES})
 target_link_libraries(query_server pthread rt dl
 ${PROJECT_BINARY_DIR}/lib/libcore.so)

